<?php
@session_start();
require 'header.php';
?>

<div class="row-fluid">
	<div class="span10 well">
		<div class="row-fluid">
			<a href="wizard.php" class="btn btn-inverse btn-large"> <i class=""></i>&nbsp;Make
				your Business Plane </a>



			<div class="row-fluid">
				<table class="table table-hover">

				<?php
				$q= mysql_query("select * from tw_cover_page;");

				if(!$q){
					echo mysql_error();
				}else {

					?>

					<tr>
						<th>Plan No</th>
						<th>Company Name</th>
						<th></th>
						<th></th>
						<th></th>
					</tr>
					<?php
					while ($cov = mysql_fetch_array($q)){
							
						?>
					<tr>
						<td><?php echo $cov['plan_id'];?></td>
						<td><?php echo $cov['comp_name']?></td>
						<td><a href="../execute/export2pdf/index.php?id=<?php echo $cov['plan_id']?>">Download</a></td>
						<td><a href="edit_plan.php?id=<?php echo $cov['plan_id']; ?>">Edit</a></td>
						<td><a href="../execute/delete_plan.php?id=<?php echo $cov['plan_id']; ?>" onclick="myFunction()">Delete</a></td>
					</tr>

					<?php } ?>
				</table>

			</div>


		</div>
	</div>




	<?php
				}
				require '../mentor/bar.php';
	?>
	<?php
	require '../mentor/footer.php';
	?>